<?php
session_start();
$flag = $_SESSION['is_loggedin'];
        if($flag == "yes")
            header("location:../admin.php");
?>


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<title>admin_login</title>
	<link rel="stylesheet" href="css/admin/style.css" type="text/css" media="all" />
</head>
<body>
<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<div id="top">
			<h1><a href="#">News On Click</a></h1>
                        <div id="top-navigation"> <a href="#">Help</a> </div>
		</div>
		<!-- End Logo + Top Nav -->
        </div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container1">
	<div class="shell">
        <br />
		<!-- Main -->
		<div id="main">
                    <!-- Content -->
                        <div id="content1">
                            <div class="box1">
                                <!-- Box Head -->
                                <div class="box-head">
                                    <h2>Administrator Log In</h2>
                                </div>
                                <!-- End Box Head -->
                                    <form action="actions/admin_login.php" method="POST" >
                                    <!-- Form -->
                                        <div class="form">
                                            <p>
                                                <label>Username <span>(Required Field)</span></label>
                                                <input type="text" name="admin_user" class="field size5" />
                                            </p>
                                            <p>
                                                <label>Password<span>(Required Field)</span></label>
                                                <input type="password" name="admin_pass" class="field size5" />
                                            </p>

                                        </div>
                                    <!-- End Form -->

                                    <!-- Form Buttons -->
                                        <div class="buttons">
                                            <input type="submit" class="button" value="Log in" />
                                        </div>
                                    <!-- End Form Buttons -->
                                    </form>
                            </div>
                        </div>
			<!-- End Content -->

			<div class="cl">&nbsp;</div>
		</div>

		<!-- Main -->
	</div>
</div>
<!-- End Container -->

    <?php include "views/admin/footer.php"?>

    </body>
</html>

